<template>
  <div class="cardContainer">
    <div class="cardLeft">
      <img :src="cardData.imgUrl" alt="图片载入失败">
    </div>
    <div class="cardRight">
      <div class="cardTitle" :title="cardData.cetAppname">{{ cardData.schedule }}</div>
      <div class="cardTitle">{{ cardData.describe }}</div>
    </div>
    <div style="clear:both;" />
  </div>
</template>

<script>
export default {
  props: {
    cardData: {
      imgUrl:"",
      schedule: '',
      describe: '测试描述'
    }
  },
  data() {
    return {}
  },
  methods: {
    hrefTo() {}
  }
}
</script>

<style lang="scss" scoped>
$cardImgH: 40px;
.cardContainer {
  width: auto;
  height: auto;
  margin: 10px 0;
  .cardLeft {
    width: $cardImgH;
    height: $cardImgH;
    float: left;
    img {
      width: $cardImgH;
      height: $cardImgH;
    }
  }
  .cardRight {
    margin-left: 60px;
    .cardTitle {
      height: 22px;
      line-height: 22px;
      font-size: 14px;
      font-weight: 400;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      white-space: nowrap;
      overflow: hidden;
    }
    .cardDesc {
      font-size: 16px;
      color:#e8e8e8;
    }
  }
}
</style>
